package com.java.base.exercise.funcationinterface;

public class FunctionJunitTest {

    public static void queryEle(DefineationFuncationInter defineationFuncationInter){

        defineationFuncationInter.execute();
    }

    public static void main(String[] args) {
        queryEle(new DefineationFuncationInter() {
            @Override
            public void execute() {
               System.out.println("测试自定义函数接口 ！java 8 before 匿名内部类 ! ");
            }
        });

        queryEle(()->System.out.println("java 8 after use lambda"));
    }

}
